﻿--[[
   @brief    descprtion: main dialog
   @author   hqzheng
   @version  1.0
   @date     2017-08-10
--]]

social_main_dialog_desc = 
{
    module_name = "social_main_dialog",
    events = 
    {
        {
            c_event = 
            {
                   
            },
            lua_event = 
            {
                {
                    id = mainframe_event.OPEN_SOCIAL_PANEL,
                    callback = "social_main_dialog_control.open_social_panel"
                },
                {
                    id = group_event.SHOW_GROUP_TAB_RED_POINT,
                    callback = "social_main_dialog_view.show_group_new_message_red_point"
                },
                {
                    id = group_event.SHOW_FRIEND_TAB_RED_POINT,
                    callback = "social_main_dialog_view.show_friend_new_message_red_point"
                },
            },            
            reg_service =
            {
                {
                    id = 'i_service_social_mainwnd_is_shown',
                    callback = 'social_main_dialog_control.is_social_panel_show'
                },
                {
                    id = 'i_service_social_mainwnd_get_rc',
                    callback = 'social_main_dialog_control.get_rc'
                },
                {
                    id = 'i_service_social_mainwnd_get_main_dialog_id',
                    callback = 'social_main_dialog_control.get_main_dialog_id'
                },
            },
            lua_file = "social\\main_dialog\\control.lua"
        },
        {
            listen_broadcast = 
            {
                {
                    id = "i_broadcast_refresh_social_friend_tab_reddot",
                    callback = "social_main_dialog_control.refresh_social_friend_tab_reddot"
                },
                {
                    id = "i_broadcast_refresh_social_group_tab_reddot",
                    callback = "social_main_dialog_control.refresh_social_group_tab_reddot"
                },
            },
            lua_file = "social\\friend_list\\control.lua"
        },
    }
}

desc_mgr.add(social_main_dialog_desc);
ierd_tgp.tpf_ui.Require("social\\main_dialog\\control.lua");
